package cn.js.sip.rat.system.service;

import cn.js.sip.rat.system.util.SpringContextUtil;

/**
 * @ClassName: cn.js.sip.rat.system.service
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2020-01-03   10:19
 */
public class SysLogService {

    private static LogService logService = null;

    public static LogService getInstance() {
        if (logService == null) {
            logService = (LogService) SpringContextUtil.getBean("logService");
        }
        return logService;
    }

    /**
     *
     * @param businessCode
     * @param modelCode
     * @param modelName
     * @param content
     * @param operateName
     */
    public static void saveLog(String businessCode,String modelCode,String modelName,String content,String operateName){
        getInstance().saveLog(businessCode, modelCode, modelName, content,operateName);
    }
}
